﻿
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using System.Xml.Serialization;
using ABC.Domain.Entities;

namespace ABC.Domain.Serialization
{
    public class PolicyItem
    {
        [XmlAttribute]
        public string Id { get; set; }
        [XmlAttribute]
        public bool IsArchive { get; set; }

        public string Company { get; set; }

        public string CompanyName { get; set; }

        public string TypeOfInsurance { get; set; }

        public string TypeOfInsuranceName { get; set; }

        public string DateBeginAction { get; set; }

        public string DateEndAction { get; set; }

        public string Product { get; set; }

        public string Comment { get; set; }

        public List<DictionaryItem> Rewards { get; set; }

        public List<DictionaryItem> Credits { get; set; }

        public List<DictionaryItem> SpecialPrograms { get; set; }

        public PolicyItem()
        {
            Rewards = new List<DictionaryItem>();
            Credits = new List<DictionaryItem>();
            SpecialPrograms = new List<DictionaryItem>();
        }
    }
}
